import VueCookie from "vue-cookie";
export const getPath = (path) => 'http://localhost:9000' + path
export function setCookiesFromObject(name,obj) {
    const objString = JSON.stringify(obj);
    VueCookie.set(name, objString,1);
}
export function getCookieForObject(key) {
    const cookieValue = VueCookie.get(key);
    if (cookieValue) {
        const obj = JSON.parse(cookieValue);
        return obj;
    }
    return null;
}